package com.example.administrator.dc.Bean;

import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2017/8/24.
 */

public class CancelFollow {

    /**
     * status : 1
     * message : 取消关注成功!
     */

    private int status;
    private String message;

    public static CancelFollow objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), CancelFollow.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
